package com.acgist.snail.java11;

public class ArraysSupportJava11 {
    public static int mismatch(byte[] a,
                               byte[] b,
                               int length) {
        int i = 0;
        // Tail < 8 bytes
        for (; i < length; i++) {
            if (a[i] != b[i])
                return i;
        }
        return -1;
    }
}
